home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 119_01.zip / VIEW.C < prev    next >
Text File  |  1993-06-16  |  2KB  |  57 lines

  1. /* VIEW.C -- View Mode
  2.    Contributed to the AUG by Mark of the Unicorn 07/20/81 
  3.  
  4. The seller of this software hereby disclaims any and all
  5. guarantees and warranties, both express and implied.  No
  6. liability of any form shall be assumed by the seller, nor shall
  7. direct, consequential, or other damages be assumed by the seller.
  8. Any user of this software uses it at his or her own risk.
  9.  
  10. Due to the ill-defined nature of "fitness for purpose" or similar
  11. types of guarantees for this type of product, no fitness for any
  12. purpose whatsoever is claimed or implied.
  13.  
  14. The physical medium upon which the software is supplied is
  15. guaranteed for one year against any physical defect.  If it
  16. should fail, return it to Mark of the Unicorn, and a new physical
  17. medium with a copy of the purchased software shall be sent.
  18.  
  19. The seller reserves the right to make changes, additions, and
  20. improvements to the software at any time; no guarantee is made
  21. that future versions of the software will be compatible with any
  22. other version.
  23.  
  24. The parts of this disclaimer are severable and fault found in
  25. any one part does not invalidate any other parts.
  26.  
  27.     Copyright (c) 1981 by Mark of the Unicorn
  28.     Created for Version 2.3 10/4/80 JTL
  29.  
  30.     This file contains the mode set up function */
  31.  
  32.  
  33. SetModes()            /* Set the modes according to the bmodes array */
  34. {
  35.     int cnt;
  36.     int MInsert(), MNotImpl();
  37.     
  38.     *mode='\0';
  39.     finit1();                    /* Set up the key bindings */
  40.     finit2();
  41.     finit3();
  42.     for (cnt=MAXMODES-1; cnt>=0; --cnt) {
  43.         switch (buffs[cbuff].bmodes[cnt]) {
  44.  
  45.         case 'v':
  46.             Rebind(&MInsert,&MNotImpl);
  47.             functs[4] = &MNotImpl;            /* C-D */
  48.             functs[9] = &MNotImpl;            /* C-I */
  49.             functs[11] = &MNotImpl;            /* C-K */
  50.             functs[13] = &MNotImpl;            /* C-M */
  51.             functs[15] = &MNotImpl;            /* C-O */
  52.             functs[17] = &MNotImpl;            /* C-Q */
  53.             functs[20] = &MNotImpl;            /* C-T */
  54.             functs[23] = &MNotImpl;            /* C-W */
  55.             functs[25] = &MNotImpl;            /* C-Y */
  56.             functs[DEL] = &MNotImpl;            /* DEL */
  57.             functs[128+11] = &MNotImpl;        /* M-C-K